package com.fenxiangtech.mall.dao;

import com.fenxiangtech.mall.entity.Image;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhangjiashun
 */
@Mapper
@Repository
public interface ImageDao {

    /**
     * 根据id获取Image
     * @param imageId
     * @return
     */
    Image getImageById(Long imageId);

    /**
     * 根据productID获取Image列表
     * @param productID
     * @return
     */
    List<Image> listImageByProductID(Long productID);
}
